package cn.edu.qzuie.artist.module.td.controller.admin.work.vo;

import cn.edu.qzuie.artist.module.td.controller.admin.worksimage.vo.WorksImageSaveReqVO;
import cn.edu.qzuie.artist.module.td.dal.dataobject.worksimage.WorksImageDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

import javax.validation.constraints.NotEmpty;

@Schema(description = "管理后台 - 作品 Response VO")
@Data
@ExcelIgnoreUnannotated
public class WorkRespVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("编号")
    private Long id;

    @Schema(description = "作品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "3D作品")
    @ExcelProperty("作品名称")
    private String workName;

    @Schema(description = "分类编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "12")
    @ExcelProperty("分类编号")
    private Long catagoryId;

    @Schema(description = "图片", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("图片")
    private String imgSrc;

    @Schema(description = "作品类型：图片，视频，文件", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("作品类型：图片，视频，文件")
    private Integer workType;

    @Schema(description = "是否发布")
    @ExcelProperty("是否发布")
    private Boolean published;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "父分类id", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long parentId; // 父分类ID

    @Schema(description = "介绍", requiredMode = Schema.RequiredMode.REQUIRED, example = "随便")
    @NotEmpty(message = "介绍不能为空")
    private String description;

    @Schema(description = "作品说明", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("作品说明")
    private String describes;

    @Schema(description = "作者", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private String nickName;

    @Schema(description = "个人展览图", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private String exhibitionImage;

    @Schema(description = "vr展厅图", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private String vrImage;
}